From f15f365867f26428b76319129cb9374bf4f477b4 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Mon, 14 Nov 2005 11:06:25 +0100 Subject: [PATCH] Allocate MAC addresses using Xensource Inc's new OUI. Signed-off-by: Ewan Mellor --- tools/python/xen/xend/server/netif.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/python/xen/xend/server/netif.py b/tools/python/xen/xend/server/netif.py index b4ea86de2c..14b079fdbb 100644 --- a/tools/python/xen/xend/server/netif.py +++ b/tools/python/xen/xend/server/netif.py @@ -35,16 +35,16 @@ xroot = XendRoot.instance() def randomMAC(): """Generate a random MAC address. - Uses OUI (Organizationally Unique Identifier) AA:00:00, an - unassigned one that used to belong to DEC. The OUI list is - available at 'standards.ieee.org'. + Uses OUI (Organizationally Unique Identifier) 00-16-3E, allocated to + Xensource, Inc. The OUI list is available at + http://standards.ieee.org/regauth/oui/oui.txt. The remaining 3 fields are random, with the first bit of the first random field set 0. @return: MAC address string """ - mac = [ 0xaa, 0x00, 0x00, + mac = [ 0x00, 0x16, 0x3e, random.randint(0x00, 0x7f), random.randint(0x00, 0xff), random.randint(0x00, 0xff) ] -- 2.30.2